using System.Xml.XPath;
using Weather.com.Client.WeatherConditions.Common;

namespace Weather.com.Client.WeatherConditions.CurrentConditions
{
    internal class CurrentWeatherInfoFactory : WeatherInfoBaseFactory
    {
        internal CurrentWeatherInfo Create(XPathNavigator navigator)
        {
            CurrentWeatherInfo weatherConditions = new CurrentWeatherInfo();
            weatherConditions = (CurrentWeatherInfo) base.Create(navigator, weatherConditions);
            weatherConditions.Conditions = new ConditionsFactory().Create(navigator);
            return weatherConditions;
        }
    }
}